<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑问题</title>
    <style>
        .comments {
            width: 60%; /*自动适应父布局宽度*/
            overflow: auto;
            word-break: break-all;
            height: 150px;
        }
    </style>
</head>
<body>
<form th:action="@{/questionEditSave}" method="post">
    <input type="hidden" name="id" th:value="${question.id}">
    <p>标题：<input type="text" name="title" th:value="${question.title}"></p>
    <p>内容：</p>
    <textarea class="comments" name="description" th:value="${question.description}"></textarea>
    <p><input value="提交" type="submit"></p>
</form>
<p th:text="${msg}"></p>
</body>
</html>